$(function(){
	$('.order_list').hover(
		function() {
			$(this).children('.order_pulldown').show();
		},
		function() {
			$(this).children('.order_pulldown').hide();
		}
	);


	//轮展图旁边10个list
	$('.menu_list').hover(function() {
		$(this).children('.menu_list10').show();
	}, function() {
		$(this).children('.menu_list10').hide();
	});



	$('.more1').click(function(){
		$('#product_box').animate({
		marginLeft:'-1226px'
		}, 1000);
		$(this).css('color','#e0e0e0').siblings().css('color','#c3b5b0');
	});

	$('.more2').click(function(){
		$('#product_box').animate({
			marginLeft:'0px'
		}, 1000);
		$(this).css('color','#e0e0e0').siblings().css('color','#c3b5b0');
	});

	$('.recommendation_more1').click(function(){
		$('#recommendation_box').animate({
		marginLeft:'-1226px'
		}, 1000);
		$(this).css('color','#e0e0e0').siblings().css('color','#c3b5b0');
	});

	$('.recommendation_more2').click(function(){
		$('#recommendation_box').animate({
			marginLeft:'0px'
		}, 1000);
		$(this).css('color','#e0e0e0').siblings().css('color','#c3b5b0');
	});



	$('.list9').hover(
		function(){
			$(this).children('.bulge').animate({'bottom':'0px'},100);
		},
		function(){
			$(this).children('.bulge').animate({'bottom':'-76px'},100);
		}
	);


	var time=setInterval(run, 2000);
	$('.more1').hover(
		function() {
			clearInterval(time)
		}, 
		function() {
			time=setInterval(run, 2000);
		}
	);
	$('.more2').hover(
		function() {
			clearInterval(time)
		}, 
		function() {
			time=setInterval(run, 2000);
		}
	);
	var newtime=setInterval(Run, 3000);
	$('.recommendation_more1').hover(
		function() {
			clearInterval(newtime)
		}, 
		function() {
			newtime=setInterval(Run, 3000);
		}
	);
	$('.recommendation_more2').hover(
		function() {
			clearInterval(newtime)
		}, 
		function() {
			newtime=setInterval(Run, 3000);
		}
	);

	var num=0;

	function run(){
		if(num==1){
			$('#product_box').animate({marginLeft:'0px'}, 1000);
			num=0;
		}else{
			$('#product_box').animate({marginLeft:'-1226px'}, 1000);
			num=1;
		}
	}
	var num1=0;
	function Run(){
		if(num1==1){
			$('#recommendation_box').animate({marginLeft:'0px'}, 1000);
			num1=0;
		}else{
			$('#recommendation_box').animate({marginLeft:'-1226px'}, 1000);
			num1=1;
		}
	}




	$('.dapei .dapei_right ul li').hover(function() {
		var num = $(this).index();
		$('.dapei_list .list8remen').eq(num).show().siblings().hide();
	}, function() {
	});

	$('.peijian .peijian_right ul li').hover(function() {
		var num = $(this).index();
		$('.peijian_list .list8peijian').eq(num).show().siblings().hide();
	}, function() {
	});

	$('.zhoubian .zhoubian_right ul li').hover(function() {
		var num = $(this).index();
		$('.zhoubian_list .list8zhoubian').eq(num).show().siblings().hide();
	}, function() {
	});



});